package com.hd123.rumba.upgrade;

import com.hd123.rumba.util.HashMap2;

/**
 * 安装/升级基类 | 常量类
 * 
 * @author lxg
 * @see Upgrade
 * 
 */

public class CUpgrade {

  /** 升级模式 */
  public static final String UPGRADEMODE_UPGRADE = "upgrade";
  public static final String UPGRADEMODE_INITDATA = "initData";

  public static final String DBMS_ORACLE = "oracle";

  public static final String DBMS_MSSQL = "mssql";

  public static final String DBMS_MYSQL = "mysql";

  public static final HashMap2 DBMS_DRIVER_MAP = new HashMap2().put2(
      "oracle.jdbc.driver.OracleDriver", DBMS_ORACLE).put2(
      "com.microsoft.jdbc.sqlserver.SQLServerDriver", DBMS_MSSQL).put2(
      "com.microsoft.sqlserver.jdbc.SQLServerDriver", DBMS_MSSQL).put2(
      "com.microsoft.sqlserver.jdbc.SQLServerDriver", DBMS_MSSQL).put2("com.mysql.jdbc.Driver",
      DBMS_MYSQL).put2("org.gjt.mm.mysql.Driver", DBMS_MYSQL);

}
